package com.skygrass.caesar.provider.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.skygrass.caesar.provider.mq.MessageSender;

@RestController
@RequestMapping("/message")
public class MassageController
{
	@Autowired
	MessageSender messageSender;

	@GetMapping("/shanghai")
	public String goShangHai()
	{
		return messageSender.goShangHai();
	}

	@GetMapping("/beijing")
	public String goBeiJing()
	{
		return messageSender.goBeiJing();
	}

}
